@extends('admin.layout.index')

@section('content')

<div class="mws-panel grid_8">
                	<div class="mws-panel-header">
                    	<span><i class="icon-table"></i> 分类列表</span>
                    </div>
                    <div class="mws-panel-body no-padding">
                        <table class="mws-table">
                            <thead>
                                <tr>
                                    <th>id</th>
                                    <th>分类名称</th>
                                    <th>父级id</th>
                                    <th>分类路径 version</th>
                                    <th>状态</th>
                                    <th>操作</th>
                                </tr>
                            </thead>
                            <tbody>
                            	@foreach($data as $k=>$v)
                                <tr>
                                    <td>{{$v['cid']}}</td>
                                    <td>{{$v['cname']}}</td>
                                    <td>{{$v['cpid']}}</td>
                                    <td>{{$v['cpath']}}</td>
                                    <td>{{$v['cstatus'] ==0 ? '未启用':'启用'}}</td>
                                    <td align="center">
                                    	<a href="/admin/cate/delete/{{$v['cid']}}">删除</a>
                                    	<a href="/admin/cate/edit/{{$v['cid']}}">修改</a>
                                    	<a href="/admin/cate/add/{{$v['cid']}}">添加子分类</a>
                                    </td>
                                </tr>
                                @endforeach
                            </tbody>
                        </table>
                    </div>
                </div>

@endsection